package com.zhangchenhui.mockitor;

import org.springframework.stereotype.Repository;

import java.util.concurrent.TimeUnit;

/**
 * 功能说明: <br>
 * 系统版本: 1.0 <br>
 * 开发人员: zhanch
 * 开发时间: 2020/8/15<br>
 * <br>
 */
@Repository
public class QueryDB {

    public String queryDb() throws InterruptedException {
        TimeUnit.SECONDS.sleep(1);
        return "DATA";
    }

    public String queryDbHa(String one,String two) throws InterruptedException {
        TimeUnit.SECONDS.sleep(1);
        return "DATA";
    }
}
